package com.flot.yazb.home.setting;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.flot.yazb.R;
import com.flot.yazb.base.BActivity;
import com.flot.yazb.base.BApplication;
import com.flot.yazb.base.model.BModel;
import com.flot.yazb.aop.stub.CodeStub;
import com.flot.yazb.model.other.SetModle;

import butterknife.BindView;
import butterknife.ButterKnife;



public class KeFuActivity extends BActivity {
    @BindView(R.id.qq)
    TextView qq;
    @BindView(R.id.iv_back)
    ImageView iv_back;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_kefu);
        ButterKnife.bind(this);
        SetModle.getSeeting(new BModel.Transit<SetModle>(this) {
            @Override
            public void onBorn(SetModle serializable, String code, String message) {
                if (code.equals(CodeStub.B_OK)&& serializable!=null ){
                    serializable.isSuccess=true;
                    BApplication.getInstance().setSetModel(serializable);
                    qq.setText(serializable.qq);
                }
            }
        });

        iv_back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
    }
}
